import request from '@/utils/request'


// ===================================首页 ====================================================
// pc首页接口 http://mpw.com/api/home/index?uid=1
export function homeIndex(params) {
  return request({
    url: '/api/home/index',
    method: 'GET',
    params
  })
}

// ===========================重废行情============================================================
//重废页面数据 http://mpw.com/api/Quotation/StatisticsData?date=10
export function StatisticsData(params) {
  return request({
    url: '/api/Quotation/StatisticsData',
    method: 'GET',
    params
  })
}

//重废行情日期 http://mpw.com/api/Quotation/quotationListTime
export function quotationListTime(params) {
  return request({
    url: '/api/Quotation/quotationListTime',
    method: 'GET',
    params
  })
}





// ==================================================================================

//标的---------------------------------------------------------
// 标的---标的类型 树状列表
export function LotsTypeList(params) {
  return request({
    url: '/api/LotsType/LotsTypeList',
    method: 'GET',
    params
  })
}
//标的---标的所在地 获取省市列表   api/Area/AreaList
export function AreaList(params) {
  return request({
    url: '/api/Area/AreaList',
    method: 'GET',
    params
  })
}
//  http://mpw.com/api/lots/lotsList?uid=1&page=1&limit=10
export function lotsList(params) {
  return request({
    url: '/api/lots/lotsList',
    method: 'GET',
    params
  })
}

// http://mpw.com/api/lots/lotsDetails?lots_id=1&auction_id=2&return_type=2
export function lotsDetails(params) {
  return request({
    url: '/api/lots/lotsDetails',
    method: 'GET',
    params
  })
}
//标的详情的模糊搜索http://mpw.com/api/lots/all?lots_id=1&auction_id=2
export function lotsDetailSearch(params) {
  return request({
    url: '/api/lots/all',
    method: 'GET',
    params
  })
}
//出价记录http://mpw.com/api/lots/bidRecord?lots_id=1
export function bidRecord(params) {
  return request({
    url: '/api/lots/bidRecord',
    method: 'GET',
    params
  })
}


//消息记录http://mpw.com/api/lots/messageLog?lots_id=1
export function messageLog(params) {
  return request({
    url: '/api/lots/messageLog',
    method: 'GET',
    params
  })
}
// --------------报名--------------------
// 标的报名页面数据http://mpw.com/api/lots/enroll?lots_id=1&auction_id=2
export function enroll(data) {
  return request({
    url: '/api/lots/enroll',
    method: 'POST',
    data
  })
}

// 标的报名http://mpw.com/api/lots/enrollAdd?lots_ids=1,2,3&auction_id=2&state=2
export function enrollAdd(data) {
  return request({
    url: '/api/lots/enrollAdd',
    method: 'POST',
    data
  })
}
//标的出价接口   http://mpw.com/api/lots/lotsOffer?lots_id=3&price=2500
export function lotsOfferPice(params) {
  return request({
    url: '/api/lots/lotsOffer',
    method: 'GET',
    params
  })
}
// 网络拍-倒计时结束-
export function network_end(params) {
  return request({
    url: '/api/Lots/network_end',
    method: 'GET',
    params
  })
}



// ---------------------拍卖会-------------------------------------------
// 拍卖会列表http://mpw.com/api/auction/auctionList
export function auctionList(params) {
  return request({
    url: '/api/auction/auctionList',
    method: 'GET',
    params
  })
}
// 拍卖会详情http://mpw.com/api/auction/auctionDetails?id=1
export function auctionDetails(params) {
  return request({
    url: '/api/auction/auctionDetails',
    method: 'GET',
    params
  })
}



// 标的---------------------------------------------
// 关注 http://mpw.com/api/Follow/clickFollow?id=1&lots_id=3
export function clickFollow(params) {
  return request({
    url: '/api/Follow/clickFollow',
    method: 'GET',
    params
  })
}

// -------------------循环物资----------------------
export function wasteList(params) {
  return request({
    url: '/api/WasteShopping/wasteList',
    method: 'GET',
    params
  })
}
// /api/WasteShopping/wasteDetails
export function wasteDetails(params) {
  return request({
    url: '/api/WasteShopping/wasteDetails',
    method: 'GET',
    params
  })
}

export function wasteApply(data) {
  return request({
    url: '/api/WasteShopping/wasteApply',
    method: 'POST',
    data
  })
}
// /api/Area/areaTree
export function areaTree(params) {
  return request({
    url: '/api/Area/areaTree',
    method: 'GET',
    params
  })
}
// --------中铁闲废资源-----------------------------------
// /api/Area/areaTree
export function InterfaceDockingList(params) {
  return request({
    url: '/api/InterfaceDocking/list',
    method: 'GET',
    params
  })
}
// /api/InterfaceDocking/details
export function detailsInterfaceDocking(params) {
  return request({
    url: '/api/InterfaceDocking/details',
    method: 'GET',
    params
  })
}
// ---------------------大家机械拍卖会-------------------------------------------
export function djAuctionList(params) {
  return request({
    url: '/api/Djjx/djAuctionList',
    method: 'GET',
    params
  })
}
export function djAuctionDetail(params) {
  return request({
    url: '/api/Djjx/djAuctionDetail',
    method: 'GET',
    params
  })
}
